package com.zky.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zky.domain.ResponseResult;
import com.zky.domain.dto.RoleDto;
import com.zky.domain.entity.Role;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;


/**
 * 角色信息表(Role)表服务接口
 *
 * @author makejava
 * @since 2023-08-07 14:20:45
 */
public interface RoleService extends IService<Role> {

    List<String> selectRoleKeyByUserId(Long id);

    ResponseResult getAllRoleByPage(Integer pageNum, Integer pageSize, String roleName, String status);

    ResponseResult changeRoleStatus(@PathVariable Integer roleId, Integer status);

    ResponseResult addRole(RoleDto roleDto);

    ResponseResult getRoleInfoById(Long id);

    ResponseResult updateRoleInfo(RoleDto roleDto);

    ResponseResult deleteRole(Long id);

    ResponseResult getListAllRole();
}

